CC   = gcc
MCC  = mpicc
MRUN = mpirun
OMPEXE = test_omp_search
MPIEXE = test_mpi_search


omp:
	$(MCC)  -Wall -fopenmp -lm test_omp_search.c psearch.c -o $(OMPEXE)


mpi:
	$(MCC) -Wall -fopenmp -lm test_mpi_search.c psearch.c -o $(MPIEXE)

omp_run:omp
	./$(OMPEXE) 10000 4

mpi_run:mpi
	$(MRUN) -n 4 ./$(MPIEXE) 

clean:
	@/bin/rm -rf *.o

all:mpi_run